package exp.ranking.observ;

import java.util.ArrayList;
import java.util.TreeMap;

import tools.FileReaderEnhance;
import tools.ObjectTools;

public class HighlightCount {
	public static void main(String[] args ) {
		String [] topics = FileReaderEnhance.readToString("./data/_newData/topiclist", "UTF-8").split("\n");
		for (String topic : topics) {
			TreeMap<Integer, ArrayList<String>> sorted_hls = (TreeMap<Integer, ArrayList<String>>) ObjectTools
					.readFromFile("./data/_newData/gold/" + topic);
			ArrayList<String> sorted = new ArrayList<>();
			for (int key : sorted_hls.descendingKeySet()) {
				sorted.addAll(sorted_hls.get(key));
			}
			System.out.println(topic + ":\t" + sorted.size());
		}
	}
}
